import request from '@/utils/request'

export function fetchList(query) {
    return request({
        url: '/Yhjb/getList',
        method: 'get',
        params: query
    })
}


//获取分组信息
export function fetchFzList() {
    return request({
        url: '/Fenzu/getList',
        method: 'get'
    })
}

//导入ip组数据
export function createArticle(data) {
    return request({
        url: '/Yhjb/getAdd',
        method: 'post',
        data
    })
}
export function updateArticle(data) {
    return request({
        url: '/Yhjb/getEdit',
        method: 'post',
        data
    })
}


export function getDel(data) {
    return request({
        url: '/Yhjb/getDel',
        method: 'post',
        data
    })
}